<template>
    <div class="el-row">
        <el-col :xs="2" :sm="5" :md="9" :lg="10" :xl="10">&nbsp;</el-col>
        <el-col :xs="20" :sm="12" :md="6" :lg="4" :xl="4">
            <div class="signin">
                <h3>{{  title }}</h3>
                <el-form ref="form" :model="form">
                    <el-form-item>
                        <el-input v-model="form.name" placeholder="邮 箱"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-input v-model="form.name" placeholder="密 码"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="open13">提 交</el-button>
                        <router-link to="/" tag="button" class="el-button">首页</router-link>
                    </el-form-item>
                </el-form> 
            </div>
        </el-col>
        <el-col :xs="2" :sm="5" :md="9" :lg="10" :xl="10">&nbsp;</el-col>               
    </div>
</template>

<script>
    export default {
        name: 'SignUp',
        data() {
            return {
                title: '用户注册',
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                }
            }
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            },
            open13() {
                this.$notify.success({
                title: '系统提示',
                message: '正在开发中....',
                showClose: false
                });
            },
            open2() {
                this.$message({
                message: '恭喜你，这是一条成功消息',
                type: 'success'
                });
            }           
        }    
    }
</script>
<style>
    .signin{
        background: #fff;
        margin-top: 160px;
        padding: 20px;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
        transition: opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;
    }
    .signin h3{
        text-align: center;
        font-weight: normal;
        color: #606266
    }
</style>
